package edu.hrbu.spring.simple.factory;

/**
 * 客户端
 */
public class WeaponCustomer {
    public static void main(String[] args) {
        Weapon tank = WeaponFactory.get("TANK");
        tank.attack();
        Weapon fighter = WeaponFactory.get("FIGHTER");
        fighter.attack();
        Weapon dagger = WeaponFactory.get("DAGGER");
        dagger.attack();
        Weapon pipa = WeaponFactory.get("PIPA");
        pipa.attack();
    }
}
